package cn.com.open.itembank.service;

import cn.com.open.itembank.dto.ImportParameter;
import cn.com.open.itembank.dto.ReturnModelForTestPaper;
import cn.com.open.itembank.exception.PoiException;

/**
 * The interface Import service.
 */
public interface ImportService {

    /**
     * 试题导入
     *
     * @param itemBankId 题库id
     * @param importModel  the importModel
     * @return return model
     * @throws PoiException the poi exception
     */
    ReturnModelForTestPaper importQuestion(String itemBankId,ImportParameter importModel) throws PoiException;

    /**
     * 导入逻辑.
     *
     * @param importParameter the input model
     * @return the return model
     * @throws PoiException the poi exception
     */
    ReturnModelForTestPaper importLogic(ImportParameter importParameter) throws PoiException;


    /**
     * 纯文本导入逻辑.
     *
     * @param importParameter the input model
     * @return the return model
     * @throws PoiException the poi exception
     */
    ReturnModelForTestPaper importTextLogic(ImportParameter importParameter) throws PoiException;
}
